package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBSupervisor;
import ModelLayer.Supervisor;

public class SupervisorCTR
{
	public ArrayList<Supervisor> findAllSupervisors()
    {
		DBSupervisor dbSupervisor = new DBSupervisor();
        ArrayList<Supervisor> allSupervisors = new ArrayList<Supervisor>();
        allSupervisors = dbSupervisor.getAllSupervisors(false);
        return allSupervisors;
    }
	
	public Supervisor findSupervisorID(int SupervisorID)
	{
		DBSupervisor dbSupervisor = new DBSupervisor();
		return dbSupervisor.searchSupervisorID(SupervisorID, true);
	}
}